package com.duguo.dynamicmvc.factory.stage;

import com.duguo.dynamicmvc.factory.ControllerFactory;

public class CreateInstanceStage implements Stage {

    public void execute(ControllerFactory controllerFactory) throws Exception {
        Class c = controllerFactory.getWorkingModel().getControllerCtClass().toClass();
        controllerFactory.getWorkingModel().setControllerInstance(c.newInstance());
    }

}
